create a dictionary app using javascript